package com.yang.design.structure.proxy.statics;

public class Client {
    public static void main(String[] args) {
        //目标类
        IUserDao target = new UserDaoImpl();

        //代理对象
        IUserDao proxy = new UserDaoProxy(target);
        boolean b = proxy.save("张三");
        System.out.println(b);
    }
}
